$.ajax({
    url:"/teacher/findOneTeacherClass.do",
    type:"post",
    data:{
        id:$.cookie("classId")
    },
    success: function(value){
        console.log(value)
        $(".container .top span").html($.cookie("teacherName")+"教师的"+$.cookie("className")+"信息")
        var data=value;
        $("tbody").empty();
        for(var i=0;i<data.length;i++){
            $("tbody").append(
                "<tr>"+
                "<td>"+data[i].id+"</td>"+
                "<td>"+data[i].name+"</td>"+
                "<td>"+data[i].sex+"</td>"+
                "<td>"+data[i].age+"</td>"+
                "<td>"+data[i].address+"</td>"+
                "</tr>"
            )
        }
    },
    error: function(){
        alert("请联系管理员！");
    }
})
$(".no").on("click",function(){
    location.href="/teacher/returnTeacherDetail.do"
})